package com.work.framework.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 竞拍记录表
 */

@TableName("bidding_record")
public class BiddingRecord {
  @TableId(value = "rid",type = IdType.AUTO)
  private Integer rid;        //记录编号（主键）
  private Integer status;     //状态（0.出局 1.领先 2.成交）
  private BigDecimal price;   //价格
  private String auctionTime; //竞拍时间
  private Integer aid;        //商品竞拍id
  private Integer uid;        //用户的uid
  private Integer flage;      //软删除
  private String nickname; //用户昵称

  public String getNickname() {
    return nickname;
  }

  public void setNickname(String nickname) {
    this.nickname = nickname;
  }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = new BigDecimal(price);
    }

    public String getAuctionTime() {
        return auctionTime;
    }

    public void setAuctionTime(String auctionTime) {
        this.auctionTime = auctionTime;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getFlage() {
        return flage;
    }

    public void setFlage(Integer flage) {
        this.flage = flage;
    }

    @Override
    public String toString() {
        return "BiddingRecord{" +
                "rid=" + rid +
                ", status=" + status +
                ", price=" + price +
                ", auctionTime='" + auctionTime + '\'' +
                ", aid=" + aid +
                ", uid=" + uid +
                ", flage=" + flage +
                '}';
    }
}
